package observer.p1;
public class Teacher implements Observer {
	@Override
	public void attach(Subject subject) {
		subject.addObserver(this);
	}

	@Override
	public void detach(Subject subject) {
		subject.delObserver(this);
	}

	@Override
	public void update(Subject subject) {
		System.out.println(getClass().getName() + " reading " + subject.getContent());
	}
}
